Optimal. Leaf size=94 \[ \frac {2 x \left (b^2-2 a c+b c x\right )}{a \left (b^2-4 a c\right ) \sqrt {a x^2+b x^3+c x^4}}-\frac {\tanh ^{-1}\left (\frac {x (2 a+b x)}{2 \sqrt {a} \sqrt {a x^2+b x^3+c x^4}}\right )}{a^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {1936, 1918,
212} \begin {gather*} \frac {2 x \left (-2 a c+b^2+b c x\right )}{a \left (b^2-4 a c\right ) \sqrt {a x^2+b x^3+c x^4}}-\frac {\tanh ^{-1}\left (\frac {x (2 a+b x)}{2 \sqrt {a} \sqrt {a x^2+b x^3+c x^4}}\right )}{a^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 1918
Rule 1936
Rubi steps
\begin {align*} \int \frac {x^2}{\left (a x^2+b x^3+c x^4\right )^{3/2}} \, dx &=\frac {2 x \left (b^2-2 a c+b c x\right )}{a \left (b^2-4 a c\right ) \sqrt {a x^2+b x^3+c x^4}}+\frac {\int \frac {1}{\sqrt {a x^2+b x^3+c x^4}} \, dx}{a}\\ &=\frac {2 x \left (b^2-2 a c+b c x\right )}{a \left (b^2-4 a c\right ) \sqrt {a x^2+b x^3+c x^4}}-\frac {2 \text {Subst}\left (\int \frac {1}{4 a-x^2} \, dx,x,\frac {x (2 a+b x)}{\sqrt {a x^2+b x^3+c x^4}}\right )}{a}\\ &=\frac {2 x \left (b^2-2 a c+b c x\right )}{a \left (b^2-4 a c\right ) \sqrt {a x^2+b x^3+c x^4}}-\frac {\tanh ^{-1}\left (\frac {x (2 a+b x)}{2 \sqrt {a} \sqrt {a x^2+b x^3+c x^4}}\right )}{a^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.43, size = 108, normalized size = 1.15 \begin {gather*} -\frac {2 x \left (\sqrt {a} \left (b^2-2 a c+b c x\right )+\left (b^2-4 a c\right ) \sqrt {a+x (b+c x)} \tanh ^{-1}\left (\frac {\sqrt {c} x-\sqrt {a+x (b+c x)}}{\sqrt {a}}\right )\right )}{a^{3/2} \left (-b^2+4 a c\right ) \sqrt {x^2 (a+x (b+c x))}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 164, normalized size = 1.74
method | result | size |
default | \(\frac {x^{3} \left (c \,x^{2}+b x +a \right ) \left (-2 a^{\frac {3}{2}} b c x +4 a^{\frac {5}{2}} c -2 a^{\frac {3}{2}} b^{2}-4 \ln \left (\frac {2 a +b x +2 \sqrt {a}\, \sqrt {c \,x^{2}+b x +a}}{x}\right ) \sqrt {c \,x^{2}+b x +a}\, a^{2} c +\ln \left (\frac {2 a +b x +2 \sqrt {a}\, \sqrt {c \,x^{2}+b x +a}}{x}\right ) \sqrt {c \,x^{2}+b x +a}\, a \,b^{2}\right )}{\left (c \,x^{4}+b \,x^{3}+a \,x^{2}\right )^{\frac {3}{2}} a^{\frac {5}{2}} \left (4 a c -b^{2}\right )}\) | \(164\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 201 vs.
\(2 (84) = 168\).
time = 0.40, size = 411, normalized size = 4.37 \begin {gather*} \left [\frac {{\left ({\left (b^{2} c - 4 \, a c^{2}\right )} x^{3} + {\left (b^{3} - 4 \, a b c\right )} x^{2} + {\left (a b^{2} - 4 \, a^{2} c\right )} x\right )} \sqrt {a} \log \left (-\frac {8 \, a b x^{2} + {\left (b^{2} + 4 \, a c\right )} x^{3} + 8 \, a^{2} x - 4 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (b x + 2 \, a\right )} \sqrt {a}}{x^{3}}\right ) + 4 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (a b c x + a b^{2} - 2 \, a^{2} c\right )}}{2 \, {\left ({\left (a^{2} b^{2} c - 4 \, a^{3} c^{2}\right )} x^{3} + {\left (a^{2} b^{3} - 4 \, a^{3} b c\right )} x^{2} + {\left (a^{3} b^{2} - 4 \, a^{4} c\right )} x\right )}}, \frac {{\left ({\left (b^{2} c - 4 \, a c^{2}\right )} x^{3} + {\left (b^{3} - 4 \, a b c\right )} x^{2} + {\left (a b^{2} - 4 \, a^{2} c\right )} x\right )} \sqrt {-a} \arctan \left (\frac {\sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (b x + 2 \, a\right )} \sqrt {-a}}{2 \, {\left (a c x^{3} + a b x^{2} + a^{2} x\right )}}\right ) + 2 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (a b c x + a b^{2} - 2 \, a^{2} c\right )}}{{\left (a^{2} b^{2} c - 4 \, a^{3} c^{2}\right )} x^{3} + {\left (a^{2} b^{3} - 4 \, a^{3} b c\right )} x^{2} + {\left (a^{3} b^{2} - 4 \, a^{4} c\right )} x}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2}}{\left (x^{2} \left (a + b x + c x^{2}\right )\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 199 vs.
\(2 (84) = 168\).
time = 5.28, size = 199, normalized size = 2.12 \begin {gather*} -\frac {2 \, {\left (a b^{2} \arctan \left (\frac {\sqrt {a}}{\sqrt {-a}}\right ) - 4 \, a^{2} c \arctan \left (\frac {\sqrt {a}}{\sqrt {-a}}\right ) + \sqrt {-a} \sqrt {a} b^{2} - 2 \, \sqrt {-a} a^{\frac {3}{2}} c\right )} \mathrm {sgn}\left (x\right )}{\sqrt {-a} a^{2} b^{2} - 4 \, \sqrt {-a} a^{3} c} + \frac {2 \, {\left (\frac {a b c x \mathrm {sgn}\left (x\right )}{a^{2} b^{2} - 4 \, a^{3} c} + \frac {a b^{2} \mathrm {sgn}\left (x\right ) - 2 \, a^{2} c \mathrm {sgn}\left (x\right )}{a^{2} b^{2} - 4 \, a^{3} c}\right )}}{\sqrt {c x^{2} + b x + a}} + \frac {2 \, \arctan \left (-\frac {\sqrt {c} x - \sqrt {c x^{2} + b x + a}}{\sqrt {-a}}\right )}{\sqrt {-a} a \mathrm {sgn}\left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^2}{{\left (c\,x^4+b\,x^3+a\,x^2\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________